Skip to content

Phase 1 : Refactor: expose resolved generation function - #190

Open
luca-belli wants to merge 4 commits into
docs/vera-cli-architecture-contractfrom
refactor/generate-runtime-entrypoint
Open

Phase 1 : Refactor: expose resolved generation function#190
luca-belli wants to merge 4 commits into
docs/vera-cli-architecture-contractfrom
refactor/generate-runtime-entrypoint

Conversation

@luca-belli

@luca-belli luca-belli commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • make generate.main the reusable generation function called by the unified
    CLI (see Phase1: Feat: add unified vera generate command #191)
  • require every runtime value explicitly; generate.main owns no CLI defaults
    and receives resolved persona files and context-template paths
  • keep generation behavior in the existing generation domain, with the focused
    resolved-input application function in generate_conversations/run.py
  • update the legacy generate.py parser and pipeline caller to resolve their
    manifest inputs before calling generate.main
  • preserve output naming, resume checks, and current generation behavior

Why this is separate

This is behavior-preserving plumbing for #191. It adds no unified CLI surface.
The temporary public boundary is generate.main; a later atomic migration will
delete root generate.py and move the necessary generation code into the
permanent top-level generate/ package.

Review guide

Validation

@luca-belli
luca-belli force-pushed the refactor/generate-runtime-entrypoint branch from 306fd0b to 79b8aa5 Compare August 8, 2026 18:13
@luca-belli luca-belli changed the title Refactor: expose generation runtime entry point Refactor: expose resolved generation function Aug 10, 2026
@luca-belli luca-belli changed the title Refactor: expose resolved generation function Phase 1 : Refactor: expose resolved generation function Aug 11, 2026
@luca-belli
luca-belli marked this pull request as ready for review August 13, 2026 20:56
@luca-belli
luca-belli requested a review from a team as a code owner August 13, 2026 20:56
Comment thread generate.py


async def main(
*,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@jgieringer jgieringer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM besides smol comment

Comment thread run_pipeline.py
parser.add_argument(
"--rubric-manifest",
default=None,
default="data/SI/rubric_manifest.json",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this should be a static var since other files use it too?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean a var declared on top of the file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants